Free PHP Directory Script

Summary

  • License
  • Requirements
  • Features
  • Installation
  • Customization
    License

    To use the directory script completely free of charge, the "Powered by..." link at the bottom of the pages must stay intact.

    You may customize the script design and structure to suit your web site needs.

    You may not distribute this script or accomplish code modifications without permission.

    Top


    Requirements

    The script runs without known bugs with PHP4 and MySQL3.

    Top


    Features

  • Multi-level category system, with unlimited number of categories.
  • Integrated search engine.
  • Completely template-driven: change the directory appearance by modifying just the template files.
  • Add/edit/delete/move pages and categories easily. Move full parts of the directory (subcategories and listings) with one click.
  • Semi-automated directory: users suggest urls and you accept/reject them.
  • IP banning.
  • Top


    Installation

  • Decompress the zip file.
  • Modify the /config.php file and include your database name, user, password and prefix for table names (prefix is optional but recommended).
  • Upload the files to your server's root directory or subdirectory.
  • Run /install.php and follow the steps.
  • Run /admin.php and log-in everytime you want to manage the directory.

    Top


    Customization

    The script is totally template-based. All code returned is editable through the template files: /template_index.php for index and categories, /template_search.php for search results and /template_add_url.php for the submission forms.

    Each template block is saved in a PHP variable, for instance:

    $TEMPLATE["HEADING"] = <<<EOF Here the editable text! EOF;

    Within these variables you can use any HTML code, besides "labels" that will allow you to use dynamic content generated by the script. This labels are presented within brackets, for instance [CATEGORY_NAME].

    Read the template files and look the returned code for better understanding.

    Top